package com.fisherman.tx;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @User: fisherman
 * @Date: 2020/5/27 10:28
 */

@Service  //业务逻辑组价
public class UserService {

    @Autowired
    private UserDao userDao;

    @Transactional
    public void insertUser(){
        System.out.println("插入完成。。");
    }
}
